{layout name="p/base"}
    <div class="row">
      <div class="col-lg-12">
        <h1>营地管理 <small>营地信息列表</small></h1>
        <ol class="breadcrumb">
          <li><a href="index.php"><i class="fa fa-dashboard"></i> 管理首页</a></li>
          <li><a href="camp-list.php"><i class="fa fa-dashboard"></i> 营地信息列表</a></li>
          <li class="active"><i class="fa fa-table"></i> 设置营地的参考价格</li>
        </ol>
        <div class="alert alert-success alert-dismissable">
          <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
          这里可以设置入住一晚的参考价格，供会员用户设置参考
        </div>
      </div>
    </div>
    <!-- /.row -->
    <div class="row">
      <div class="col-lg-12">
        <form action='/camp/{$id}/price'  method="post">
          <div class="col-sm-4">
            <label for="name">参考价格</label>
            <input type="text" name="price" class="form-control" id="name" placeholder="例，100" value={$list.price}>
            </div>
            <div class="col-sm-4">
            <label for="name">价格单位</label>
            <select class="form-control" name='unit' id='sel'>
            {foreach $campPriceUnit as $k => $unit}
            {if $list.unit==$k}
            <option value={$k} selected='true'>{$unit}</option>
            {else}
            <option value={$k}>{$unit}</option>
            {/if}
            {/foreach}
            </select>
            </div>
          </br></br></br>
          <div class="col-lg-12 mybtn">
            <div class="btn-group">
              <a href="camp-list.php" class="btn btn-default">返回</a>
              <button class="btn btn-primary" type="submit">提交</button>
            </div>
          </div>
        </form>
      </div>
    </div>
    <!-- /.row -->
    <script type="text/javascript" src="/jquery.js"></script>
    <script type="text/javascript">
      $(document).ready(function(){
        $("#sel").change(function(){
        //var $to_unit= $("#sel").val();
        //alert($("#sel").val());
      });
          })    
    </script>